//
//  NSString+Path.m
//  weibo
//
//  Created by hp on 16/5/3.
//  Copyright © 2016年 hp. All rights reserved.
//

#import "NSString+Path.h"

@implementation NSString (Path)
- (NSString *)docPath
{
    NSArray *myPath=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *myDocPath=myPath[0];
    NSString *docPath = [myDocPath stringByAppendingPathComponent:@"account.plist"];
    NSLog(@"%@",docPath);
    return docPath;
}
- (NSString *)cachePath
{
    NSArray *myPath=NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
    NSString *myDocPath=myPath[0];
    NSString *cachePath = [myDocPath stringByAppendingPathComponent:self];
    NSLog(@"%@",cachePath);
    return cachePath;
}
- (NSString *)tmpPath
{

    return [NSTemporaryDirectory() stringByAppendingPathComponent:self];
}
@end
